package com.yunxin.customui.bean.echart;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class Series<T> implements Serializable{

    // 曲线名字
    String name;
    //日期
    String date;
    // 数据集合
    List<T> data;

    String type;

    MarkLine markLine;

    String barWidth;

    String color;

    String barGap;

    String yAxisIndex;

    boolean showSymbol = false;

    boolean smooth = true;

    public Series(ChartValCfgBean chartValCfgBean,List<T> data){
        this.data = data;
        this.type = chartValCfgBean.getChartType();
        this.color = chartValCfgBean.color;
        this.name = chartValCfgBean.chartName;
        this.barWidth = chartValCfgBean.barWidth;
        this.barGap = chartValCfgBean.barGap;
    }
}
